package com.liangw.bjliangwsearch.pojo;

/**
 * @ClassName B
 * @Description TODO
 * @Author liangw
 * @Date 2020/10/28 15:38
 * @Version 1.0
 **/
public class B {
    private String B;

    public String getB() {
        return B;
    }

    public void setB(String b) {
        B = b;
    }

    public static void main(String[] args) {
        A a = new A();
        a.setName(null);


        if(a.getName()!=null && a.getName().equals("a")){
            System.out.println(111);
        }else{
            System.out.println(222);
        }

    }
}
